function selectedToPost() {
	function _getIds(selectedIds, targetType) {
		var ids = "";
		var $box = targetType == "dialog" ? $.pdialog.getCurrent() : navTab
				.getCurrentPanel();
		$box.find("input:checked").filter("[name='" + selectedIds + "']").each(
				function(i) {
					var val = $(this).val();
					ids += i == 0 ? val : "," + val;
				});
		return ids;
	}
	return this.each(function() {
		var $this = $(this);
		var selectedIds = $this.attr("rel") || "ids";
		var postType = $this.attr("postType") || "map";
		$this.click(function() {
					var targetType = $this.attr("targetType");
					var ids = _getIds(selectedIds, targetType);
					if (!ids) {
						alertMsg.error($this.attr("warn")|| DWZ.msg("alertSelectMsg"));
						return false;
					}
					var _callback = $this.attr("callback")
							|| (targetType == "dialog" ? dialogAjaxDone
									: navTabAjaxDone);
					if (!$.isFunction(_callback))
						_callback = eval('(' + _callback + ')');
					// 未实现
					function _doPost() {
						if (postType == 'map') {
							return $.map(ids.split(','), function(val, i) {
								return {
									name : selectedIds,
									value : val
								};
							});
						} else {
							var temp = {};
							temp[selectedIds] = ids;
							window.returnValue = temp;
//							return temp;
						}
					}
					var title = $this.attr("title");
					alert(title);
					if (title) {
						alertMsg.confirm(title, {
							okCall : _doPost
						});
					}
					return false;
				});
	});
	// end
}